
<div class="form-group">
	<div class="alert alert-warning-light no-margin">
		配件信息
	</div>
</div>

<div class="form-group">
	<div class="col-xs-12 col-sm-12">
		<table class="table table-striped table-bordered table-hover table-nowrap"
			   width="100%">
			<thead>
			<tr>
				<th>配件图片</th>
				<th>配件名称</th>
				<th>配件编码</th>
				<th>配件数量</th>
				<th>价格</th>
			</tr>
			</thead>
			<tbody>

			{foreach name="row.parts" item="val"}
			<tr>
				<td><a href="javascript:void(0)" data-tips-image="{$val.img|default="-"}">
					<img src="{$val.img|default="-"}" class="img-sm img-center" width="100"></a></td>
				<td>{$val.name|default="-"}</td>
				<td>{$val.num|default="-"}</td>
				<td>{$val.number}</td>
				<td>{$val.price}</td>
			</tr>
			{/foreach}
			</tbody>
		</table>
	</div>

</div>
<div class="form-group">
	<div class="alert alert-warning-light no-margin">
		基础信息
	</div>
</div>
<div class="form-group">

	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">工单编号:</span>
			{$row.workorder_number}
		</div>
	</div>
	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">工单标题:</span>
			{$row.title}
		</div>
	</div>
	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">关联客户:</span>
			<a class="btn-dialog" data-url="qingdongams/customer/customer/detail?ids={$row.customer_id}" data-area=["90%","90%"] data-title="客户详情" >{$row.customer.name}</a>
		</div>
	</div>
	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">客户联系人:</span>
			{$row.contacts.name}
		</div>
	</div>
	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">所属地区:</span>
			{$row.address}
		</div>
	</div>
	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">详细地址:</span>
			{$row.desc}
		</div>
	</div>
	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">问题类型:</span>
			{$row.aftermarket_type_ids}
		</div>
	</div>

	<div class="col-xs-6 col-sm-10">
		<div class="form-group col-sm-10">
			<span class="text-muted">问题描述:</span>
			{$row.desc}
		</div>
	</div>

	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">开始时间:</span>
			{$row.start_time}
		</div>
	</div>


	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">预计结束时间:</span>
			{$row.expected_end_time}
		</div>
	</div>
	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">紧急程度:</span>
			{$row.priority}
		</div>
	</div>
	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">过保类型:</span>
			{eq name="$row.is_over" value="1"}过保{else/}未过保{/eq}
		</div>
	</div>
	<div class="col-xs-6 col-sm-10">
		<div class="form-group col-sm-10">
			<span class="text-muted">计划备注:</span>
			{$row.remarks}
		</div>
	</div>

	<div class="col-xs-12 col-sm-12">
		<div class="form-group col-sm-10">
			<span class="text-muted">附件:</span>
			<div class="well">
				{if condition="$row.file"}
				<div class="thumbnail">
					{foreach name="row.file" item="val"}
					<img data-tips-image src="{$val.file_path}" alt="">
					{/foreach}
				</div>
				{/if}
			</div>
		</div>
	</div>

</div>